home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / scheme / gjr / cmplrtst.lha / pred.scm < prev    next >
Encoding:
Text File  |  1990-03-27  |  204 b   |  15 lines

  1. ;;; -*- Scheme -*-
  2.  
  3. #|
  4. Description:
  5. This code tests boolean generation in predicates.
  6.  
  7. Usage:
  8. (foo? '((1))) -> #t
  9. (foo? '(())) -> ()
  10. |#
  11.  
  12. (declare (usual-integrations))
  13.  
  14. (define (foo? x)
  15.   (pair? (car x)))